package com.xxx.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum EmployeeStatus {
    DISABLE(0,"禁用"),
    ENABLE(1,"启用"),
    ;


    // 简单粗暴理解: 解决后端和数据库出入口的转化使用该字段
    @EnumValue
    private final Integer i;

    @JsonValue
    private final String s;

    EmployeeStatus(Integer i, String s) {
        this.i = i;
        this.s = s;
    }
}
